
<script>
	
	export default {
		globalData: {
		    userInfo: null,
		    URL: "wss://nls-gateway.cn-shanghai.aliyuncs.com/ws/v1"
		  },
		onLaunch() {
			// // 	//通过本地缓存取出登陆的凭证
			try {
			  const value = uni.getStorageSync('isLogin');
			  if (value) {
				  console.log(value,'是否登录')
			    // 使用获取到的 value
				uni.reLaunch({
					// url: "/src/views/pageStudy/pagePlay/gendu/index",
					// url: "/src/views/pageStudy/pagePlay/kouyujiaoji/index",
					 // url: "/src/views/pageStudy/pagePlay/zhishidianhuigu/kantuxuanju/index",
					// url: "/src/views/pageStudy/pagePlay/zhishidianhuigu/pintu/index",
					// url: "/src/views/pageStudy/pagePlay/tingxie/lianxian/index",
					// url: "/src/views/pageMine/gerenxinxi/index",
					url: "/src/views/pageMain/pageHome/index",
					// url: "/src/views/pageStudy/pagePlay/tingxie/fanpai/index",
					success: () => {}
				})
			  } else {
			    // 处理没有获取到值的情况
				uni.reLaunch({
					// url: "/src/views/pageLogin/register/index",
					url: "/src/views/pageLogin/index",
					success: () => {}
				})
			  }
			} catch (e) {
				console.log(e,'bbbb')
			  // 处理异常情况
			}
		
		// 通过 判断获取跳转页面
			console.log(this.$defaultPage);
			// 设置为启动页面
			uni.switchTab({
			  url: this.$defaultPage
			});
		},
		methods: {
		},
		mounted() {
		},
		beforeDestroy() {
		}
	}
</script>
<style>
	page {
		/* background-color: #edf4ff; */
	}

	/* /导航栏字体 */
	.uni-page-head .uni-page-head__title {
		font-size: 30rpx !important;
	}

	/* // tab图标 */
	.uni-tabbar .uni-tabbar__icon {
		width: 25rpx !important;
		height: 25rpx !important;
	}
</style>
<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "common/main.scss";
</style>